home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / amigalib / printf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-09  |  481 b   |  28 lines

  1.  
  2. /*
  3.  *  PRINTF.C    dos.library var-args interface to VPrintf()
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  *
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include <stdarg.h>
  13. #include <exec/types.h>
  14. #include <clib/dos_protos.h>
  15.  
  16. LONG
  17. Printf(unsigned char *ctl, ...)
  18. {
  19.     va_list va;
  20.     int n;
  21.  
  22.     va_start(va, ctl);
  23.     n = VPrintf(ctl, va);
  24.     va_end(va);
  25.     return(n);
  26. }
  27.  
  28.